import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index.js'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import dataV from '@jiaminghi/data-view'

/**
 * 由于datav未完全适配vue3，解决方法打开以下链接查看
 * https://blog.csdn.net/u012162516/article/details/143369700?ops_request_misc=%257B%2522request%255Fid%2522%253A%252278938c0af1ec90a6d4e6b7f41f513672%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=78938c0af1ec90a6d4e6b7f41f513672&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-2-143369700-null-null.142^v102^pc_search_result_base8&utm_term=vue3%2Bvite%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8datav&spm=1018.2226.3001.4187
 * **/

const app = createApp(App)
const pinia = createPinia()

// 注册持久化插件
pinia.use(piniaPluginPersistedstate)

// 挂载路由
app.use(router)

// 挂载 Pinia 
app.use(pinia)

//挂载dataV组件库
app.use(dataV)
// app.use(DataV, { classNamePrefix: 'dv-' });

// 最后挂载根实例
app.mount('#app')